<?php
/**
 * @subpackage	com_anjolina
 * @copyright	Copyright (C) 2012 Mario Wolf
 * @license		GNU General Public License version 2 or later;
 */

// no direct access
defined('_JEXEC') or die;

// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.tooltip');

$user		= JFactory::getUser();
$userId		= $user->get('id');

$logActive = false; 

$debugmoderaw= $this->params->get('debugmode');
$debugmode = $debugmoderaw;
if(isset($debugmoderaw)){
	if($debugmoderaw=="1"||$debugmoderaw=="2"){
		$logActive = true;
	}
}

$logContent		= $this->log;

$option = "com_anjolina";
$task = "";
$id = "";
?>
<form action="<?php echo JRoute::_('index.php?option=com_anjolina');?>" method="post" name="adminForm" id="adminForm">
	<!-- <p>
		<a href="<?php echo $this->path ?>">Download Log</a>
	</p> -->
	<div class="clr"> </div>

	<div style="heigt:90%;width:90%;font-size:10px;border-style:solid;border-width:0px;">
	
		<?php
		if($logActive){
		if($logContent!=""){
				//echo $logContent;
				echo "<pre>".$logContent."</pre>";
			}
			else{
				echo "logfile empty";
			}
		}
		else{
			echo "logging disabled"; 
		}
		?>
		
	</div>
	<!--  
	<div>
		<?php echo JHtml::_('form.token'); ?>
	</div>
	
<input type="hidden" name="option" value="'.$option.'" />
<input type="hidden" name="task" value="'.$task.'" />
<input type="hidden" name="cid" value="'.$id.'" />
-->
	<div>
		<input type="hidden" name="extension" value="<?php echo $extension;?>" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
		<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
		<input type="hidden" name="original_order_values" value="<?php echo implode($originalOrders, ','); ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
	
</form>
